<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <title>文档管理/日记</title>
  <%@ include file="../link_script.jsp" %>
  <script src="js/pmis/pmis-diary.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<html:form styleId="list" action="/diary.do">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@ include file="../operate_button_list.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
          <tr>
            <td width="4%" height="22" background="images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">选择</span></div></td>
            <td width="4%" height="22" background="images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">序号</span></div></td>
            <td width="10%" height="22" background="images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">日期</span></div></td>
            <td width="5%" height="22" background="images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">天气</span></div></td>
            <td width="25%" height="22" background="images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">正文</span></div></td>
            <td width="10%" height="22" background="images/bg.gif" bgcolor="#FFFFFF" class="STYLE1"><div align="center">常用操作</div></td>
            <td width="*" height="22" background="images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">...</span></div></td>           
          </tr>
          <logic:notEmpty name="diaryList">
          <% int i = 0; %>
            <logic:iterate id="var" name="diaryList">
            <% i++; %>
              <tr>
                <td height="20" bgcolor="#FFFFFF"><div align="center"><input type="checkbox" name="ids" value="${var.diaryID}" /></div></td>
                <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1"><%=i %></div></td>
                <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1"><bean:write name="var" property="diaryDate" /></div></td>
                <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1"><bean:write name="var" property="weather" /></div></td>
                <td height="20" bgcolor="#FFFFFF"><div align="left" class="STYLE1">&nbsp;<bean:write name="var" property="diaryText" /></div></td>
                <td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE4"><a href="diary.do?method=editDiary&diaryID=${var.diaryID}">编辑</a>
                &nbsp;<a href="diary.do?method=detailDiary&diaryID=${var.diaryID}">明细</a></span></div></td>
                <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1">&nbsp;&nbsp;</div></td>
              </tr>
            </logic:iterate>
          </logic:notEmpty>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@ include file="../page.jsp"%>
</table>
</html:form>
</body>
</html>

